Tables [dbo].[SystemConfig]
Properties
PropertyValue
Created10:31:40 AM Tuesday, March 02, 2010
Last Modified1:20:17 PM Thursday, February 23, 2012
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_SystemConfig: SystemConfigKeyIndexes IX_SystemConfig_ParameterName_OrganizationKey_SystemConfigKey: ParameterValue\ParameterName\OrganizationKey\SystemConfigKeySystemConfigKeyuniqueidentifier16
No
(newid())
Indexes IX_ParameterName: ParameterNameIndexes IX_SystemConfig_ParameterName_OrganizationKey_SystemConfigKey: ParameterValue\ParameterName\OrganizationKey\SystemConfigKeyParameterNamenvarchar(255)510
No
Indexes IX_SystemConfig_ParameterName_OrganizationKey_SystemConfigKey: ParameterValue\ParameterName\OrganizationKey\SystemConfigKeyParameterValuenvarchar(2500)5000
Yes
Descriptionnvarchar(500)1000
Yes
Foreign Keys FK_SystemConfig_UserMain_CreatedBy: [dbo].[UserMain].CreatedByUserKeyIndexes IX_SystemConfig_CreatedByUserKey: CreatedByUserKeyCreatedByUserKeyuniqueidentifier16
No
CreatedOndatetime8
No
Foreign Keys FK_SystemConfig_UserMain_UpdatedBy: [dbo].[UserMain].UpdatedByUserKeyIndexes IX_SystemConfig_UpdatedByUserKey: UpdatedByUserKeyUpdatedByUserKeyuniqueidentifier16
No
UpdatedOndatetime8
No
Foreign Keys FK_SystemConfig_OrganizationMain: [dbo].[OrganizationMain].OrganizationKeyIndexes IX_SystemConfig_ParameterName_OrganizationKey_SystemConfigKey: ParameterValue\ParameterName\OrganizationKey\SystemConfigKeyOrganizationKeyuniqueidentifier16
No
Foreign Keys FK_SystemConfig_SystemEntity: [dbo].[SystemEntity].SystemEntityKeyIndexes IX_SystemConfig_SystemEntityKey: SystemEntityKeySystemEntityKeyuniqueidentifier16
Yes
MarkedForDeleteOndatetime8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_SystemConfig: SystemConfigKeyPK_SystemConfigSystemConfigKey
Yes
IX_ParameterNameParameterName
IX_SystemConfig_CreatedByUserKeyCreatedByUserKey
IX_SystemConfig_ParameterName_OrganizationKey_SystemConfigKeyParameterValue, ParameterName, OrganizationKey, SystemConfigKey
IX_SystemConfig_SystemEntityKeySystemEntityKey
IX_SystemConfig_UpdatedByUserKeyUpdatedByUserKey
Foreign Keys Foreign Keys
NameColumns
FK_SystemConfig_OrganizationMainOrganizationKey->[dbo].[OrganizationMain].[OrganizationKey]
FK_SystemConfig_SystemEntitySystemEntityKey->[dbo].[SystemEntity].[SystemEntityKey]
FK_SystemConfig_UserMain_CreatedByCreatedByUserKey->[dbo].[UserMain].[UserKey]
FK_SystemConfig_UserMain_UpdatedByUpdatedByUserKey->[dbo].[UserMain].[UserKey]
Permissions
TypeActionOwning Principal
GrantSelectIMIS
SQL Script
CREATE TABLE [dbo].[SystemConfig]
(
[SystemConfigKey] [uniqueidentifier] NOT NULL CONSTRAINT [DF_SystemConfig_SystemConfigKey] DEFAULT (newid()),
[ParameterName] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ParameterValue] [nvarchar] (2500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Description] [nvarchar] (500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CreatedByUserKey] [uniqueidentifier] NOT NULL,
[CreatedOn] [datetime] NOT NULL,
[UpdatedByUserKey] [uniqueidentifier] NOT NULL,
[UpdatedOn] [datetime] NOT NULL,
[OrganizationKey] [uniqueidentifier] NOT NULL,
[SystemEntityKey] [uniqueidentifier] NULL,
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[SystemConfig] ADD CONSTRAINT [PK_SystemConfig] PRIMARY KEY CLUSTERED ([SystemConfigKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SystemConfig_CreatedByUserKey] ON [dbo].[SystemConfig] ([CreatedByUserKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ParameterName] ON [dbo].[SystemConfig] ([ParameterName]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SystemConfig_ParameterName_OrganizationKey_SystemConfigKey] ON [dbo].[SystemConfig] ([ParameterName], [OrganizationKey], [SystemConfigKey]) INCLUDE ([ParameterValue]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SystemConfig_SystemEntityKey] ON [dbo].[SystemConfig] ([SystemEntityKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_SystemConfig_UpdatedByUserKey] ON [dbo].[SystemConfig] ([UpdatedByUserKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SystemConfig] ADD CONSTRAINT [FK_SystemConfig_OrganizationMain] FOREIGN KEY ([OrganizationKey]) REFERENCES [dbo].[OrganizationMain] ([OrganizationKey])
GO
ALTER TABLE [dbo].[SystemConfig] ADD CONSTRAINT [FK_SystemConfig_SystemEntity] FOREIGN KEY ([SystemEntityKey]) REFERENCES [dbo].[SystemEntity] ([SystemEntityKey])
GO
ALTER TABLE [dbo].[SystemConfig] ADD CONSTRAINT [FK_SystemConfig_UserMain_CreatedBy] FOREIGN KEY ([CreatedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
ALTER TABLE [dbo].[SystemConfig] ADD CONSTRAINT [FK_SystemConfig_UserMain_UpdatedBy] FOREIGN KEY ([UpdatedByUserKey]) REFERENCES [dbo].[UserMain] ([UserKey])
GO
GRANT SELECT ON  [dbo].[SystemConfig] TO [IMIS]
GO
Uses
Used By